package com.qf.sale.service;

import com.qf.lw.pojo.CustomerPojo;
import com.qf.lw.pojo.GoodsPojo;
import com.qf.lw.pojo.OrderPojo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


public interface IOrderService {
    /**
     * 生成订单
     * @param aid 用户id
     * @param gids 商品ids
     * @param shopCar 购物车
     * @return
     */
    public OrderPojo create(int aid, String[] gids, Map<String,GoodsPojo> shopCar,int addressId);

    public boolean cancelOrder(String oid);

   public  boolean apaySuccess(String oid);

    public CustomerPojo ordershow(int aid);
}
